$(function(){
	var infoId=queryString('detailId');
	//为信息编号赋值
	$(".infoCont").val(infoId);
});
//正则取链接传来的数据
function queryString(key)
{
    var regex_str = "^.+\\?.*?\\b"+ key +"=(.*?)(?:(?=&)|$|#)";
    var regex = new RegExp(regex_str,"i");
    var url = window.location.toString();
    if(regex.test(url)) return RegExp.$1;
    return undefined;
}
/*确定调配模态框*/
function deployBtn(){
	if($(".reson").val()==""){
		$("#errorModal").modal('show');
	}else{
		$("#deployModal").modal('show');
	}
}
/*调配信息*/
function savaDeploy(){
	$("#deployModal").modal('hide');
	var deployMes={};
	deployMes.id=$(".infoCont").val();
	deployMes.toflow=$(".reflow").val();
	deployMes.reson=$(".reson").val();
	alert(JSON.stringify(deployMes));
}

